# 作者：小七
# 2024年12月27日


name_list = ["zhangsan", "lisi", "wangwu"]

print(name_list[0])
print(name_list.index("lisi"))
name_list[1] = "李四"
print(name_list)
name_list.append("王五")
print(name_list)
name_list.insert(1,"wangxiaomei")
print(name_list)
temp_list = ["孙悟空", "猪二哥", "沙师弟"]
name_list.extend(temp_list)
print(name_list)
name_list.remove("wangwu")
print(name_list)
name_list.pop()
print(name_list)
name_list.pop(2)
print(name_list)
name_list.clear()
print(name_list)